using System;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using Microsoft.Practices.EnterpriseLibrary.Data;
using SubSonic;

namespace Commerce.Common
{
    /// <summary>
    /// A Persistable class that uses Generics to store it's state
    /// in the database. This class maps to the CSK_Store_Transaction table.
    /// </summary>
    public partial class Transaction : ActiveRecord<Transaction>
    {

        #region Custom - not in DB
        private string _CVV2Code;

        public string CVV2Code
        {
            get
            {
                return _CVV2Code;
            }
            set
            {
                _CVV2Code = value;
            }
        }

        private string _GatewayResponse;

        public string GatewayResponse
        {
            get
            {
                return _GatewayResponse;
            }
            set
            {
                _GatewayResponse = value;
            }
        }
        //enum
        public TransactionType TransactionType
        {
            get
            {
                return (TransactionType)this.GetColumnValue("transactionTypeID");
            }
            set
            {
                this.MarkDirty();
                this.SetColumnValue("transactionTypeID", value);
            }
        }
        #endregion

    }
}
